Page({
  data: {
    list: []
  },
  onLoad() {
    this.getList()
  },
  async getList() {
    const res = await wx.http.get('/visitor')
    // console.log(res);
    this.setData({
      list: res.data.rows
    })
  },
  goPassport(e) {
    // console.log(e);
    wx.navigateTo({
      url: `/visitor_pkg/pages/passport/index?id=${e.mark.id}`,
    })
  },
})
